package com.fac.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(description = "维修工单分页查询参数")
public class RepairOrderPageQueryDTO implements Serializable {

    @NotNull(message = "页码不能为空")
    @Min(value = 1, message = "页码必须大于0")
    @ApiModelProperty(value = "页码", required = true, example = "1")
    private Integer page = 1;

    @NotNull(message = "每页显示记录数不能为空")
    @Min(value = 1, message = "每页显示记录数必须大于0")
    @ApiModelProperty(value = "每页显示记录数", required = true, example = "10")
    private Integer size = 10;

    @ApiModelProperty(value = "状态：0待处理，1处理中，2已完成，3已取消", example = "0")
    private Integer status;

    @ApiModelProperty(value = "优先级：0低，1中，2高", example = "1")
    private Integer priority;

    @ApiModelProperty(value = "设备ID", example = "1")
    private Long equipmentId;
} 